package com.smc.domain.model;

import java.io.Serializable;
import java.sql.Timestamp;
/**
 * 
 * 类名：Message.java
 * 作用：
 * @author 陈恒 Jan 25, 2010 
 * @version 1.0
 * @hibernate.mapping
 * schema="esignature"
 * @hibernate.class
 * table="t_message"
 * dynamic-update="true"
 * dynamic-insert="true"
 * select-before-update="true"
 * 短消息
 */
public class Message implements Serializable {
	/**
	 * @hibernate.id
	 * generator-class="uuid"
	 */
	private String uuid ;
	/**
	 * @hibernate.property
	 * not-null="true"
	 */
	private String title ;
	/**
	 * @hibernate.property
	 * not-null="true"
	 */
	private String content ;
	/**
	 * @hibernate.property
	 */
	private Timestamp recordTime ;
	/**
	 * @hibernate.many-to-one
	 * column="user_uuid"
	 */
	private User sender ;
	/**
	 * @hibernate.many-to-one
	 * column="user_uuid"
	 */
	private User receiver ;
	/**
	 * 0：末读
	 * 1：己读
	 * defalut：0
	 * @hibernate.property
	 * not-null="true"
	 */
	private int status ;
	
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getRecordTime() {
		return recordTime;
	}
	public void setRecordTime(Timestamp recordTime) {
		this.recordTime = recordTime;
	}
	public User getSender() {
		return sender;
	}
	public void setSender(User sender) {
		this.sender = sender;
	}
	public User getReceiver() {
		return receiver;
	}
	public void setReceiver(User receiver) {
		this.receiver = receiver;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
}
